import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { Order, OrderSchema } from './order.schema'
import { OrderController } from './order.controller'
import { OrderService } from './order.service'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: Order.name, schema: OrderSchema, collection: 'orders' }
    ]),
  ],
  controllers: [OrderController],
  providers: [OrderService],
  exports: [OrderService,MongooseModule],
})
export class OrderModule {
}
